﻿// *----------------------------------------------------------------
// Copyright (C) 2017 通通优品
// 版权所有。
// 
// 类名：CheckClientCredentialsInput.cs
// 功能描述：TongTongMall.MallWeb.Application
// 
// Create User：jym 2017/02/09
// 
// Edit User：UserName,EditTime
// Describe：Describe
// ----------------------------------------------------------------*/
using System.ComponentModel.DataAnnotations;
using TongTongMall.Application.Services.Dto;
using TongTongMall.MallWeb.Application.Attributes.ModelBinders;
using TongTongMall.MallWeb.Core.User.Models;

namespace TongTongMall.MallWeb.Application.Authorization.Client.Dto.ViewModels
{
    public class CheckClientCredentialsInput : IInputDto
    {
        /// <summary>
        /// 商户账号
        /// </summary>
        [Required(ErrorMessage = "商户账号必填")]
        public string AppId { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        [Required(ErrorMessage = "商户密码必填")]
        public string Secret { get; set; }

        /// <summary>
        /// 授权平台
        /// </summary>
        [ValidEnumValue]
        public VisitPlatformEnum Tk { get; set; }
    }
}
